package com.ctrlspace.model;

import java.util.Date;
import java.util.List;

public class WorkspaceUnit {
	
	private int workspaceId;
	
	private int ownerId;
	
	private String title;
	
	private String description;
	
	private Date dateCreated;
	
	private List<ProjectUnit> projects;

	/**
	 * @return the workspaceId
	 */
	public int getWorkspaceId() {
		return workspaceId;
	}

	/**
	 * @param workspaceId
	 *            the workspaceId to set
	 */
	public void setWorkspaceId(int workspaceId) {
		this.workspaceId = workspaceId;
	}

	/**
	 * @return the ownerId
	 */
	public int getOwnerId() {
		return ownerId;
	}

	/**
	 * @param ownerId
	 *            the ownerId to set
	 */
	public void setOwnerId(int ownerId) {
		this.ownerId = ownerId;
	}

	/**
	 * @return the title
	 */
	public String getTitle() {
		return title;
	}

	/**
	 * @param title
	 *            the title to set
	 */
	public void setTitle(String title) {
		this.title = title;
	}

	/**
	 * @return the description
	 */
	public String getDescription() {
		return description;
	}

	/**
	 * @param description
	 *            the description to set
	 */
	public void setDescription(String description) {
		this.description = description;
	}

	/**
	 * @return the dateCreated
	 */
	public Date getDateCreated() {
		return dateCreated;
	}

	/**
	 * @param dateCreated
	 *            the dateCreated to set
	 */
	public void setDateCreated(Date dateCreated) {
		this.dateCreated = dateCreated;
	}

	public void setProjects(List<ProjectUnit> projects) {
		this.projects = projects;
	}

	public List<ProjectUnit> getProjects() {
		return projects;
	}
}
